<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="refresh" content="<?php echo $time ?>;url=<?php echo $url ?>">
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>操作成功</title>
	</head>
	<style>
		.msg_ok{
			position: absolute;
			z-index: 1;
			left: 10%;
			right: 10%;
			top: 30%;
			background-color: #009688;
			border-radius: 5px;
			height: 200px;
		}
		.msg_ok .msg{
			line-height: 100%;
			color: #fff;
			position:  absolute;
			line-height: 45px;
			text-align: center;
			width: 100%;
			font-weight: bold;
			margin-top: 30px;
		}
		.msg_ok .msg a{
			color: #fff;
		}
	</style>
	<body>
		<div class="msg_ok">
			<div class="msg">
				<div><?php echo $msg ?></div>
				<div><a href="<?php echo $url ?>">立即返回</a></div>
				<div><span id="timer"><?php echo $time ?></span>秒后返回上一页</div>
			</div>
		</div>
	</body>
	<script language="javascript" type="text/javascript">
	function run() {
        var s = document.getElementById("timer");
        s.innerHTML = s.innerHTML * 1 - 1;
	}
	window.setInterval("run();", 1000);
	</script>
  
</html>